﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectWarehouse.ascx.cs" Inherits="CanDoo.Oil.WebApp.UserControls.SelectWarehouse" %>
<f:Panel ID="Panel7" runat="server" BodyPadding="5px" Width="650px" Height="300px" Hidden="true"
    ShowBorder="true" ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
    <Items>
        <f:Form ID="Form2" runat="server" ShowHeader="false"
            ShowBorder="false">
            <Rows>
                <f:FormRow ID="FormRowSearch" runat="server">
                    <Items>
                        <f:TwinTriggerBox ID="SearchKey" runat="server" ShowLabel="false" EmptyText="在名称中搜索"
                            Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="search_Key_Trigger2Click"
                            OnTrigger1Click="search_Key_Trigger1Click">
                        </f:TwinTriggerBox>
                    </Items>
                </f:FormRow>
            </Rows>
        </f:Form>
        <f:Grid ID="SelectWarehouseControl_GridList" BoxFlex="1"
            DataIDField="Id" DataTextField="Name" KeepCurrentSelection="true"
            PageSize="10" ShowBorder="true" ShowHeader="false"
            AllowPaging="false" runat="server" EnableCheckBoxSelect="True"
            DataKeyNames="Id,Name" IsDatabasePaging="true" OnPageIndexChange="GridList_PageIndexChange"
            AllowSorting="false" SortField="Code" SortDirection="ASC"
            OnSort="GridList_Sort">
            <PageItems>
                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                </f:ToolbarSeparator>
                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                </f:ToolbarText>
                <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                    runat="server">
                    <f:ListItem Text="10" Value="10" />
                    <f:ListItem Text="20" Value="20" />
                    <f:ListItem Text="50" Value="50" />
                    <f:ListItem Text="100" Value="100" />
                </f:DropDownList>
            </PageItems>
            <Columns>
                <f:RowNumberField />
                <f:BoundField ColumnID="Code" DataField="Code" HeaderText="编号" Width="150px" />
                <f:BoundField ColumnID="WarehouseType" DataField="WarehouseType.Name" HeaderText="仓库类别" Width="150px" />
                <f:BoundField ColumnID="Name" DataField="Name" HeaderText="仓库名称" Width="150px" />
                <f:BoundField ColumnID="Manager" DataField="Manager" HeaderText="负责人" Width="150px" />
                <f:BoundField ColumnID="Tel" DataField="Tel" HeaderText="联系电话" Width="150px" />
                <f:BoundField ColumnID="Address" DataField="Address" HeaderText="仓库地址" Width="150px" />
                <f:BoundField ColumnID="Remark" DataField="Remark" HeaderText="备注" ExpandUnusedSpace="true" />
            </Columns>
        </f:Grid>
    </Items>
</f:Panel>
